//package com.demo.statemachine.d01;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.statemachine.annotation.OnTransition;
//import org.springframework.statemachine.annotation.WithStateMachine;
//
///**
// * 事件配置
// */
//@WithStateMachine
//public class StateMachineEventConfig {
//    Logger logger = LoggerFactory.getLogger(StateMachineEventConfig.class);
//
//
//    @OnTransition(source = "UNCONNECTED", target = "START")
//    public void connect() {
//        logger.info("连接事件, 未连接 -> 已连接");
//    }
//
//    @OnTransition(source = "START", target = "UPDATE")
//    public void update() throws InterruptedException {
//        logger.info("UpdateIncrease----");
//        Thread.sleep(2000);
//    }
//
//    @OnTransition(source = "START", target = "UPDATE_EXPER")
//    public void upExperson() throws InterruptedException {
//        logger.info("UpdateEx----");
//        Thread.sleep(2000);
//    }
//
//    @OnTransition(source = "UPDATE", target = "END")
//    public void updateSuccess() {
//        logger.info("update success!");
//
//    }
//    @OnTransition(source = "UPDATE_EXPER", target = "END")
//    public void updateSuccess2() {
//        logger.info("update_exper success!");
//
//    }
//
//    @OnTransition(source = "END", target = "UNCONNECTED")
//    public void unConnectSuccess() {
//        logger.info("connect cancel");
//    }
//}
